package com.rightsidetech.mall.dto.response;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
@JsonIgnoreProperties(value={"count"})
@JsonInclude(JsonInclude.Include.NON_NULL)
public class TypePageResp implements Serializable {

    private Long id;

    @ApiModelProperty("分类名称")
    private String typeName;

    @ApiModelProperty("等级")
    private Byte grade;

    @ApiModelProperty("创建人")
    private String createrName;

    @ApiModelProperty("创建时间")
    private String createdAt;

    private Long count;

    private Boolean _loading = false;

    @ApiModelProperty("子级分类")
    private List<TypePageResp> children = new ArrayList();

    @ApiModelProperty("关联门店状态")
    private Byte type;

}
